<template>
    <!-- 3.6、使用外部组件，必须使用div包裹 -->
    <div>
        <School></School>
        <Hospital></Hospital>
    </div>
</template>

<script>
// 3.1、引入外部组件
import School from "School";
import Hospital from "Hospital";

// 3.2、向外暴露App组件
export default {
    // 3.3、组件名称，建议和组件文件名保持一致
    name: "App",
    //   3.4、引用外部组件
    components: {
        School,
        Hospital,
    },
};
</script>

<style></style>
